package club.ruanx.spider.service.impl;

import club.ruanx.spider.entity.SpiderMovie;
import club.ruanx.spider.repository.SpiderMovieRepository;
import club.ruanx.spider.service.SpiderMovieService;
import org.springframework.stereotype.Service;

/**
 * @author 阮胜
 * @date 2018/11/12 22:45
 */
@Service
public class SpiderMovieServiceImpl implements SpiderMovieService {
    private final SpiderMovieRepository spiderMovieRepository;

    public SpiderMovieServiceImpl(SpiderMovieRepository spiderMovieRepository) {
        this.spiderMovieRepository = spiderMovieRepository;
    }

    @Override
    public SpiderMovie save(SpiderMovie spiderMovie) {
        return spiderMovieRepository.save(spiderMovie);
    }
}
